home *** CD-ROM | disk | FTP | other *** search
/ Tricks of the Mac Game Programming Gurus / TricksOfTheMacGameProgrammingGurus.iso / Demos / Tools / AppMaker / Examples / pre-built AMReminder / PowerPlant / CAdd.h < prev    next >
Encoding:
Text File  |  1994-11-03  |  2.1 KB  |  75 lines  |  [TEXT/MMCC]

  1. // CAdd.h -- dialog class
  2. // Created 01/01/95 12:01 PM by AppMaker
  3.  
  4. #pragma once
  5.  
  6. #include <LDialogBox.h>
  7.  
  8. class    LStream;
  9.  
  10. class    LStdButton;
  11. class    LEditField;
  12. class    LRadioGroup;
  13. class    LView;
  14. class    LStdCheckBox;
  15. class    LStdPopupMenu;
  16.  
  17. #define cmd_Add        'Add '
  18.  
  19. //----------
  20. class    CAdd :    public LDialogBox {
  21. public:    // these comprise the programming interface for using the dialog
  22.     static    CAdd*        CreateAdd        (LCommander        *inSuperCommander);
  23.  
  24.     virtual void        GetDateFieldString        (Str255        str);
  25.     virtual void        SetDateFieldString        (Str255        str);
  26.     virtual void        GetTimeFieldString        (Str255        str);
  27.     virtual void        SetTimeFieldString        (Str255        str);
  28.     virtual long        GetAmPmGroupChoice();
  29.     virtual void        SetAmPmGroupChoice        (long        choice);
  30.     virtual void        GetMessageFieldString        (Str255        str);
  31.     virtual void        SetMessageFieldString        (Str255        str);
  32.     virtual Boolean        GetDisplayIconCheckChoice();
  33.     virtual void        SetDisplayIconCheckChoice        (Boolean    choice);
  34.     virtual Boolean        GetDisplayAlertCheckChoice();
  35.     virtual void        SetDisplayAlertCheckChoice        (Boolean    choice);
  36.     virtual Boolean        GetPlaySoundCheckChoice();
  37.     virtual void        SetPlaySoundCheckChoice        (Boolean    choice);
  38.     virtual short        GetSoundPopupChoice();
  39.     virtual void        SetSoundPopupChoice        (short        choice);
  40.  
  41. public:    // these comprise the implementation
  42.     static    CAdd*    CreateAddStream    (LStream    *inStream);
  43.  
  44.                         CAdd();
  45.                         CAdd        (LStream    *inStream);
  46.     virtual                ~CAdd();
  47.  
  48.     virtual void        ListenToMessage        (MessageT    inMessage,
  49.                                              void        *ioParam);
  50.  
  51.     virtual Boolean        ObeyCommand            (CommandT    inCommand,
  52.                                              void        *ioParam = nil);
  53.     virtual void        FindCommandStatus    (CommandT    inCommand,
  54.                                              Boolean    &outEnabled,
  55.                                              Boolean    &outUsesMark,
  56.                                              Char16        &outMark,
  57.                                              Str255        outName);
  58.     virtual Boolean        FocusDraw();
  59.  
  60. protected:
  61.     LStdButton            *mOKButton;
  62.     LStdButton            *mCancelButton;
  63.     LEditField            *mDateField;
  64.     LEditField            *mTimeField;
  65.     LView                    *mAmPmView;
  66.     LRadioGroup            *mAmPmGroup;
  67.     LEditField            *mMessageField;
  68.     LStdCheckBox            *mDisplayIconCheck;
  69.     LStdCheckBox            *mDisplayAlertCheck;
  70.     LStdCheckBox            *mPlaySoundCheck;
  71.     LStdPopupMenu            *mSoundPopup;
  72.  
  73.     virtual void        FinishCreateSelf();
  74. };
  75.